<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:if test="hasActionErrors()">
	<script type="text/javascript">
		$(function() {
			$('#errorDialog').dialog({
				modal : true
			});
		});
	</script>
</s:if>
<s:if test="hasActionMessages()">
	<script type="text/javascript">
		$(function() {
			$('#msgDialog').dialog({
				modal : true
			});
		});
	</script>
</s:if>

<div id="rightPan">
	<div id="rightbodyPan">
		<div align="center"><p style=" font-size: 24px; padding: 10px 0 5px 0; " >สมัครสมาชิก</p></div>

		<s:form id="register" action="register" theme="simple">

			<table>
				<tr>
					<td style="padding-top: 10px;">ชื่อ<span>*</span></td>
					<td style="padding-top: 10px;"><s:textfield
							name="registerForm.first_Name" size="25"></s:textfield></td>
				</tr>
				<tr>
					<td>นามสกุล</td>
					<td><s:textfield name="registerForm.last_Name" size="25"></s:textfield></td>
				</tr>
				<tr>
					<td>อีเมล์<span>*</span></td>
					<td><s:textfield name="registerForm.email" label="อีเมล์"
							size="35"></s:textfield></td>
				</tr>
				<tr>
					<td>ชื่อผู้เข้าใช้<span>*</span></td>
					<td><s:textfield name="registerForm.username" size="25"></s:textfield></td>
				</tr>
				<tr>
					<td>รหัสผ่าน<span>*</span></td>
					<td><s:password name="registerForm.password" size="15"></s:password></td>
				</tr>
				<tr>
					<td>รหัสผ่าน อีกครั้ง<span>*</span></td>
					<td><s:password name="registerForm.confirmPassword" size="15"></s:password></td>
				</tr>
				<tr>
					<td>เบอร์โทร</td>
					<td><s:textfield name="registerForm.telephone"
							label="เบอร์โทร" size="25"></s:textfield></td>
				</tr>
				<tr>
					<td>ที่อยู่</td>
					<td><s:textfield name="registerForm.address_Line1" size="50"></s:textfield></td>
				</tr>
				<tr>
					<td></td>
					<td><s:textfield name="registerForm.address_Line2" size="50"></s:textfield></td>
				</tr>
				<tr>
					<td></td>
					<td><s:textfield name="registerForm.address_Line3" size="50"></s:textfield></td>
				</tr>
				<tr>
					<td></td>
					<td><s:textfield name="registerForm.address_Line4" size="50"></s:textfield></td>
				</tr>
				<tr>
					<td>รหัสไปรษณีย์</td>
					<td><s:textfield name="registerForm.post_Code" size="15"></s:textfield></td>
				</tr>
			</table>

			<!-- s:submit/-->
			<input type="submit" value="ตกลง" id="button"
				style="margin: 30px 0 0 250px;"></input>

		</s:form>

	</div>
</div>


